package com.ws.mbp.springsecuritydemo.controller;
import com.ws.mbp.springsecuritydemo.utils.R;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/admin")
@Tag(name = "管理员接口", description = "管理员接口")
public class SecurityAdminAction {

    @GetMapping("/add")
    public R add() {
        System.out.println("增加Admin方法。。。。。。。。。。");
        return new R(200, "增加Admin成功", null);
    }
    @GetMapping("/delete")
    public R delete() {
        System.out.println("删除Admin方法。。。。。。。。。。");
        return new R(200, "删除Admin成功", null);
    }
    @GetMapping("/update")
    public R update() {
        System.out.println("修改Admin方法。。。。。。。。。。");
        return new R(200, "修改Admin成功", null);
    }
    @GetMapping("/list")
    public R list() {
        System.out.println("查询Admin方法。。。。。。。。。。");
        return new R(200, "查询Admin成功", null);
    }


}